/*  ----------------------------------------------------------------------------
 *  Arello Mobile
 *  Fast 3d Engine
 *  ----------------------------------------------------------------------------
 * Except where otherwise noted, this work is licensed under
 * http://creativecommons.org/licenses/by/3.0
 */

#include "ManagerPtr.h"
#include <Gluck.h>
#include <safe_new.h>

namespace liba
{
namespace input
{

Manager * ManagerPtr::man = 0;

void ManagerPtr::create()
{
	if( man )
		throw Gluck(__FUNCTION__, "input manager already exists");
	man = new Manager;
}

void ManagerPtr::destroy()
{
	delete man; man = 0;
}

} // namespace input
} // namespace liba


